<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="public/css/bootstrap.min.css">
</head>
<body>
	<div class="container">		
		<h1><{$title}></h1>

		<div class="center-block mt20">
			<a href="./index.php?c=user&a=index" class="btn btn-info">首页</a>
			<a href="index.php?c=user&a=add" class="btn btn-success">添加</a>
		</div>

		<{block name='main'}>
		<table class="table table-hover">
			<tr>
				<th>ID</th>
				<th>电话</th>
				<th>姓名</th>
				<th>性别</th>

				<th>操作</th>
			</tr>
			<{foreach $list as $v}>
			<tr>
				<td><{$v['id']}></td>
				<td><{$v['phone']}></td>
				<td><{$v['nickname']}></td>
				<td>

					<{if $v['sex']==1}>男
					<{elseif $v['sex']==2}>女
					<{else}>保密
					<{/if}>	
				</td>

				<td class='col-md-2'>
					<a href="index.php?c=user&a=edit&id=<{$v['id']}>" class="btn-sm btn-primary ">编辑</a>
					<a href="index.php?c=user&a=del&id=<{$v['id']}>" class="btn-sm btn-danger ">删除</a>
				</td>
			</tr>
			<{/foreach}>
		</table>
		<{/block}>
	</div>




	

	<script src="./public/js/jquery.min.js"></script>
	<script src="./public/js/bootstrap.min.js"></script>
</body>
</html>